#{extends 'frameHome.html' /} #{set title:'Organization Tags' /}

<div id=main>

<hr> Organization tags </hr>




#{if tagList}
#{list items:tagList, as:'atag'}
<ul>
<li><a href="@{Tags.showTag(atag.id)}">${atag.name} </a></li>
</ul>
#{/list}
#{/if}
#{else}
Sorry! The Organization has no Tags !!
#{if organization.tagging==true}
<a href="@{Tags.insertTag(organization.id)}"class="pill button" target="innerframe" >Create a Tag</a>
#{/if}
#{else}
#{if userIsLead==true}
<a href="@{Tags.insertTag(organization.id)}"class="pill button" target="innerframe" >Create a Tag</a> 
 #{/if}
#{/else}
#{/else}